const Koa = require('koa')
const app = new Koa()

const main = (ctx) => {
    console.log(123);
}
app.use(main)

app.listen(3000, ()=> {
    console.log('listening on 3000');
})